﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Sys_Param_Manage.aspx.cs"
    Inherits="SYS_POPEDOM_Sys_Param_Manage" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script type="text/javascript" src="../JavaScript/Common.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ext:ResourceManager ID="ScriptManager1" runat="server">
        </ext:ResourceManager>
        <ext:Store ID="Store1" runat="server" AutoLoad="true" OnRefreshData="OnStoreRefreshData">
            <Proxy>
                <ext:PageProxy>
                </ext:PageProxy>
            </Proxy>
            <Reader>
                <ext:JsonReader IDProperty="PARAMETER_ID">
                    <Fields>
                        <ext:RecordField Name="PARAMETER_ID">
                        </ext:RecordField>
                        <ext:RecordField Name="PARAMETER_NAME">
                        </ext:RecordField>
                        <ext:RecordField Name="PARAMETER_TYPE_NAME">
                        </ext:RecordField>
                        <ext:RecordField Name="SUB_SYSTEM_NAME">
                        </ext:RecordField>
                        <ext:RecordField Name="PARAMETER_NOTE">
                        </ext:RecordField>
                    </Fields>
                </ext:JsonReader>
            </Reader>
            <SortInfo Direction="ASC"></SortInfo>
        </ext:Store>
        <ext:Viewport ID="Viewport1" runat="server">
            <Content>
                <ext:BorderLayout ID = "BorderLayout2" runat ="server">
                <Center>
                <%--<ext:FitLayout ID="FitLayout1" runat="server">--%>
                    <ext:GridPanel ID="GridPanel1" runat="server" StoreID="Store1" Border="false">
                        <ColumnModel>
                            <Columns>
                                <ext:RowNumbererColumn Header="序号" Width="35">
                                </ext:RowNumbererColumn>
                                <ext:Column Header="参数编号" DataIndex="PARAMETER_ID" Width="150">
                                </ext:Column>
                                <ext:Column Header="参数名称" DataIndex="PARAMETER_NAME" Width="150">
                                </ext:Column>
                                <ext:Column Header="参数类型" DataIndex="PARAMETER_TYPE_NAME" Width="100">
                                </ext:Column>
                                <ext:Column Header="所属子系统" DataIndex="SUB_SYSTEM_NAME" Width="100">
                                </ext:Column>
                                <ext:Column Header="参数说明" DataIndex="PARAMETER_NOTE" Width="350">
                                </ext:Column>
                            </Columns>
                        </ColumnModel>
                        <SelectionModel>
                            <ext:RowSelectionModel runat="server">
                            </ext:RowSelectionModel>
                        </SelectionModel>
                        <TopBar>
                            <ext:Toolbar ID="Toolbar1" runat="server">
                                <Items>
                                    <ext:Button ID="extBtn_Add" runat="server" Icon="Add" Text="增加">
                                    </ext:Button>
                                    <ext:Button ID="extBtn_Edit" runat="server" Icon="GroupEdit" Text="修改">
                                    </ext:Button>
                                    <ext:Button ID="extBtn_Del" runat="server" Icon="Delete" Text="删除">
                                        <DirectEvents>
                                            <Click OnEvent="DelParam">
                                            </Click>
                                        </DirectEvents>
                                    </ext:Button>
                                    <ext:Button ID="extBtnRefresh" runat="server" Icon="Reload" Text="刷新">
                                        <DirectEvents>
                                            <Click OnEvent="OnRefresh">
                                            </Click>
                                        </DirectEvents>
                                    </ext:Button>
                                </Items>
                            </ext:Toolbar>
                        </TopBar>
                    </ext:GridPanel>
                <%--</ext:FitLayout>--%>
                </Center>
            </ext:BorderLayout>
            </Content>
        </ext:Viewport>
    </div>
    </form>
</body>
</html>
